<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@  taglib  uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!-- 切记要导包,不然不能调用 -->
<%@  page  import="com.xs.bean.VideoTableBean" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>精彩从这里开始</title>
</head>
<!-- VideoTableBean 实例化 -->
<%  VideoTableBean  vtb=(VideoTableBean)request.getAttribute("video"); %>
<body>
<div class="close_light_bg" id="close_light_bg"></div>
<!--播放器代码开始-->
<script type="text/javascript" src="player/js/swfobject.js"></script>
<div class="video" id="CuPlayer"><b><img src="player/images/loading.gif"  /> 你懂得...<a href="https://www.baidu.com/" target="_blank">点这里有惊喜哟!&gt;&gt;</a></b></div>
<script type="text/javascript">
var so = new SWFObject("player/player.swf","myCuPlayer","900","600","9","#000000");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addParam("quality","high");
so.addParam("salign","lt");
//播放器设置文件-----------------------------
so.addVariable("JcScpFile","player/CuSunV4set.xml");
//视频文件及略缩图--------------------------
//so.addVariable("JcScpServer","rtmp://www.yoursite.com/vod");//流媒体服务器
so.addVariable("JcScpAutoPlay","no"); //是否自动播放
so.addVariable("JcScpVideoPath","../<%=vtb.getVideoUrl()%>"); //视频文件地址
so.addVariable("JcScpImg","<%=vtb.getVideoImgUrl()%>");//视频缩略图
//-----------------------------------------
so.write("CuPlayer");
</script>
<script language=javascript src="player/js/jquery-1.4.2.min.js" type=text/javascript></script> 
<script language=javascript src="player/js/action.js" type=text/javascript></script>
<!--播放器代码结束-->
<a href="<%=vtb.getVideoUrl()%>">不要点击这里,有病毒!</a>
</body>
</html>

